#!/usr/bin/env node

const fs = require('fs'),
      src = process.argv[2];

try{
  if(!fs.statSync(src).isFile()){
    console.log(`${src} is not file`);
    process.exit(1);
  }
  fs.unlinkSync(src);
}catch(e){
  console.error(e.message);
}
